package com.xuetang9.t9.hotel.controller;

import com.xuetang9.t9.hotel.beans.Arrive;
import com.xuetang9.t9.hotel.mapper.condition.impl.ArriveCondition;
import com.xuetang9.t9.hotel.services.IArriveService;
import com.xuetang9.t9.hotel.utils.PageBean;
import com.xuetang9.t9.hotel.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/arrive")
@ResponseBody
public class ArriveController {

    @Autowired
    private IArriveService arriveService;

    @PostMapping("/save")
    private ResponseResult save(@RequestBody Arrive arrive){

        return null;
    }

    @RequestMapping(value = "/show",method = RequestMethod.POST)
    private PageBean show(@RequestBody ArriveCondition condition){
        return arriveService.queryByAll(condition);
    }


}
